package my.merborn.ordersysteam105.models.pojo.enums;

public enum FinishStatus {
    FINISH(2),NOT_FINISH(1);

    private Integer status;
    private FinishStatus(Integer status){
        this.status = status;
    }

    public Integer getStatus(){
        return status;
    }

    public static FinishStatus parseFinishStatus(Integer status){
        if(status.equals(FINISH.getStatus())){
            return FINISH;
        }else if(status.equals(NOT_FINISH.getStatus())){
            return NOT_FINISH;
        }else return null;
    }

}
